package org.lboot.flow.module.audit;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.support.JpaRepositoryImplementation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface FlowAuditDAO extends JpaRepositoryImplementation<FlowAudit,String> {
    @Transactional
    void deleteByFlowWorkId(String flowWorkId);

    List<FlowAudit> findByFlowWorkId(String flowWorkId);


    List<FlowAudit> findByFlowWorkIdIn(List<String > flowIds);
}
